import request from '@/utils/request.js'
/**
 * 获取联想建议
 * @param {*} q 获取联想建议的关键词
 */
export function getSearchSuggestion (q) {
  return request({
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}
/**
 * 获取搜索结果
 * @param {*} params {page，per_page，q}
 */
export function getSearchResults (params) {
  return request({
    url: '/v1_0/search',
    params
  })
}
